package cn.woochen.mvvmframe.adapter

import cn.woochen.comlib.adapter.BaseSingleItemAdapter
import cn.woochen.mvvmframe.R
import cn.woochen.mvvmframe.databinding.ItemExampleBinding

class ExampleAdapter(data: MutableList<String>? = null) : BaseSingleItemAdapter<String>(R.layout.item_example,data) {

    override fun convert(holder: ViewHolder, item: String) {
        holder.getDataBinding<ItemExampleBinding?>()?.let {
            it.itemBean = item
        }
    }

}